home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMAttr.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  144 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMAttr.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMAttr_h__
  6. #define __gen_nsIDOMAttr_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMNode_h__
  10. #include "nsIDOMNode.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMAttr */
  19. #define NS_IDOMATTR_IID_STR "a6cf9070-15b3-11d2-932e-00805f8add32"
  20.  
  21. #define NS_IDOMATTR_IID \
  22.   {0xa6cf9070, 0x15b3, 0x11d2, \
  23.     { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  24.  
  25. class NS_NO_VTABLE nsIDOMAttr : public nsIDOMNode {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMATTR_IID)
  29.  
  30.   /**
  31.  * The nsIDOMAttr interface represents an attribute in an "Element" object. 
  32.  * Typically the allowable values for the attribute are defined in a document 
  33.  * type definition.
  34.  * 
  35.  * For more information on this interface please see 
  36.  * http://www.w3.org/TR/DOM-Level-2-Core/
  37.  *
  38.  * @status FROZEN
  39.  */
  40.   /* readonly attribute DOMString name; */
  41.   NS_IMETHOD GetName(nsAString & aName) = 0;
  42.  
  43.   /* readonly attribute boolean specified; */
  44.   NS_IMETHOD GetSpecified(PRBool *aSpecified) = 0;
  45.  
  46.   /* attribute DOMString value; */
  47.   NS_IMETHOD GetValue(nsAString & aValue) = 0;
  48.   NS_IMETHOD SetValue(const nsAString & aValue) = 0;
  49.  
  50.   /* readonly attribute nsIDOMElement ownerElement; */
  51.   NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) = 0;
  52.  
  53. };
  54.  
  55. /* Use this macro when declaring classes that implement this interface. */
  56. #define NS_DECL_NSIDOMATTR \
  57.   NS_IMETHOD GetName(nsAString & aName); \
  58.   NS_IMETHOD GetSpecified(PRBool *aSpecified); \
  59.   NS_IMETHOD GetValue(nsAString & aValue); \
  60.   NS_IMETHOD SetValue(const nsAString & aValue); \
  61.   NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement); 
  62.  
  63. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  64. #define NS_FORWARD_NSIDOMATTR(_to) \
  65.   NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  66.   NS_IMETHOD GetSpecified(PRBool *aSpecified) { return _to GetSpecified(aSpecified); } \
  67.   NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
  68.   NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); } \
  69.   NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) { return _to GetOwnerElement(aOwnerElement); } 
  70.  
  71. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  72. #define NS_FORWARD_SAFE_NSIDOMATTR(_to) \
  73.   NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  74.   NS_IMETHOD GetSpecified(PRBool *aSpecified) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSpecified(aSpecified); } \
  75.   NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  76.   NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
  77.   NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerElement(aOwnerElement); } 
  78.  
  79. #if 0
  80. /* Use the code below as a template for the implementation class for this interface. */
  81.  
  82. /* Header file */
  83. class nsDOMAttr : public nsIDOMAttr
  84. {
  85. public:
  86.   NS_DECL_ISUPPORTS
  87.   NS_DECL_NSIDOMATTR
  88.  
  89.   nsDOMAttr();
  90.  
  91. private:
  92.   ~nsDOMAttr();
  93.  
  94. protected:
  95.   /* additional members */
  96. };
  97.  
  98. /* Implementation file */
  99. NS_IMPL_ISUPPORTS1(nsDOMAttr, nsIDOMAttr)
  100.  
  101. nsDOMAttr::nsDOMAttr()
  102. {
  103.   /* member initializers and constructor code */
  104. }
  105.  
  106. nsDOMAttr::~nsDOMAttr()
  107. {
  108.   /* destructor code */
  109. }
  110.  
  111. /* readonly attribute DOMString name; */
  112. NS_IMETHODIMP nsDOMAttr::GetName(nsAString & aName)
  113. {
  114.     return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116.  
  117. /* readonly attribute boolean specified; */
  118. NS_IMETHODIMP nsDOMAttr::GetSpecified(PRBool *aSpecified)
  119. {
  120.     return NS_ERROR_NOT_IMPLEMENTED;
  121. }
  122.  
  123. /* attribute DOMString value; */
  124. NS_IMETHODIMP nsDOMAttr::GetValue(nsAString & aValue)
  125. {
  126.     return NS_ERROR_NOT_IMPLEMENTED;
  127. }
  128. NS_IMETHODIMP nsDOMAttr::SetValue(const nsAString & aValue)
  129. {
  130.     return NS_ERROR_NOT_IMPLEMENTED;
  131. }
  132.  
  133. /* readonly attribute nsIDOMElement ownerElement; */
  134. NS_IMETHODIMP nsDOMAttr::GetOwnerElement(nsIDOMElement * *aOwnerElement)
  135. {
  136.     return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138.  
  139. /* End of implementation class template. */
  140. #endif
  141.  
  142.  
  143. #endif /* __gen_nsIDOMAttr_h__ */
  144.